package oo2;

public class SanJiaoXing {
	double x, y, z;

	public double mianji() {
		double zz = zhouchang() / 2;// 接收别的方法的返回值
		return Math.sqrt(zz * (zz - x) * (zz - y) * (zz - z));
	}

	public double zhouchang() {
		return x + y + z;
	}

}
